package com.dragon.modules.yuegou.query.park;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dragon.modules.yuegou.entity.park.PlateNoEntity;
import com.dragon.modules.yuegou.enums.ParkSystem;
import com.dragon.modules.yuegou.enums.park.PlateNoStatus;
import com.dragon.modules.yuegou.mybatis.Condition;
import com.dragon.modules.yuegou.mybatis.Query;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonUnwrapped;

import java.time.LocalDateTime;
/**
 * 车牌信息表 动态查询条件
 * 
 * @author pbuilder generated
 * @date 2019-09-25 11:42:25
 * @version 2.0
 */
@JsonInclude(Include.NON_NULL)
public class PlateNoQuery extends PlateNoEntity implements Query<PlateNoEntity> {

    /** 查询条件 */
	@JsonUnwrapped(prefix = "id")
	private Condition<String> idCondition;

    /** 商圈ID查询条件 */
	@JsonUnwrapped(prefix = "busdId")
	private Condition<String> busdIdCondition;

    /** 会员ID查询条件 */
	@JsonUnwrapped(prefix = "memberId")
	private Condition<String> memberIdCondition;

    /** 车牌号查询条件 */
	@JsonUnwrapped(prefix = "plateNumber")
	private Condition<String> plateNumberCondition;

    /** [全局枚举]停车系统：0-无忧停车-DAHANWUYOU、1-ETCP-ETCP查询条件 */
	@JsonUnwrapped(prefix = "parkSystem")
	private Condition<ParkSystem> parkSystemCondition;

    /** [枚举]车牌状态：0-未入场-OUTSIDE、1-已入场-INSIDE、2-待出场-PAYD查询条件 */
	@JsonUnwrapped(prefix = "status")
	private Condition<PlateNoStatus> statusCondition;

    /** 车辆颜色查询条件 */
	@JsonUnwrapped(prefix = "brand")
	private Condition<String> brandCondition;

    /** 车辆型号查询条件 */
	@JsonUnwrapped(prefix = "model")
	private Condition<String> modelCondition;

    /** 车辆颜色查询条件 */
	@JsonUnwrapped(prefix = "color")
	private Condition<String> colorCondition;

    /** 创建时间查询条件 */
	@JsonUnwrapped(prefix = "createdTime")
	private Condition<LocalDateTime> createdTimeCondition;

    /** 更新时间查询条件 */
	@JsonUnwrapped(prefix = "modifiedTime")
	private Condition<LocalDateTime> modifiedTimeCondition;

    /** 删除标识：0-未删除；1-已删除查询条件 */
	@JsonUnwrapped(prefix = "del")
	private Condition<Boolean> delCondition;

    /** 删除时间查询条件 */
	@JsonUnwrapped(prefix = "delTime")
	private Condition<LocalDateTime> delTimeCondition;

	/**
	 * 构造一个查询条件对象
	 */
	public PlateNoQuery() {
		super();
	}

	/**
	 * 依据实体对象构造一个查询条件对象
	 * 
	 * @param entity 实体对象
	 */
	public PlateNoQuery(PlateNoEntity entity) {
		super(entity);
	}

	/**
	 * 依据其它查询条件对象的信息构造一个查询条件对象
	 * 
	 * @param other 查询条件对象
	 */
	public PlateNoQuery(PlateNoQuery other) {
		super(other);
		if(other.idCondition != null) {
			this.idCondition = other.idCondition.copy();
		}
		if(other.busdIdCondition != null) {
			this.busdIdCondition = other.busdIdCondition.copy();
		}
		if(other.memberIdCondition != null) {
			this.memberIdCondition = other.memberIdCondition.copy();
		}
		if(other.plateNumberCondition != null) {
			this.plateNumberCondition = other.plateNumberCondition.copy();
		}
		if(other.parkSystemCondition != null) {
			this.parkSystemCondition = other.parkSystemCondition.copy();
		}
		if(other.statusCondition != null) {
			this.statusCondition = other.statusCondition.copy();
		}
		if(other.brandCondition != null) {
			this.brandCondition = other.brandCondition.copy();
		}
		if(other.modelCondition != null) {
			this.modelCondition = other.modelCondition.copy();
		}
		if(other.colorCondition != null) {
			this.colorCondition = other.colorCondition.copy();
		}
		if(other.createdTimeCondition != null) {
			this.createdTimeCondition = other.createdTimeCondition.copy();
		}
		if(other.modifiedTimeCondition != null) {
			this.modifiedTimeCondition = other.modifiedTimeCondition.copy();
		}
		if(other.delCondition != null) {
			this.delCondition = other.delCondition.copy();
		}
		if(other.delTimeCondition != null) {
			this.delTimeCondition = other.delTimeCondition.copy();
		}
	}

	@Override
	public QueryWrapper<PlateNoEntity> toQueryWrapper() {
		QueryWrapper<PlateNoEntity> wrapper = new QueryWrapper<>(this);
		if (idCondition != null) {
			idCondition.toWrapper(wrapper, COL_ID);
		}
		if (busdIdCondition != null) {
			busdIdCondition.toWrapper(wrapper, COL_BUSD_ID);
		}
		if (memberIdCondition != null) {
			memberIdCondition.toWrapper(wrapper, COL_MEMBER_ID);
		}
		if (plateNumberCondition != null) {
			plateNumberCondition.toWrapper(wrapper, COL_PLATE_NUMBER);
		}
		if (parkSystemCondition != null) {
			parkSystemCondition.toWrapper(wrapper, COL_PARK_SYSTEM);
		}
		if (statusCondition != null) {
			statusCondition.toWrapper(wrapper, COL_STATUS);
		}
		if (brandCondition != null) {
			brandCondition.toWrapper(wrapper, COL_BRAND);
		}
		if (modelCondition != null) {
			modelCondition.toWrapper(wrapper, COL_MODEL);
		}
		if (colorCondition != null) {
			colorCondition.toWrapper(wrapper, COL_COLOR);
		}
		if (createdTimeCondition != null) {
			createdTimeCondition.toWrapper(wrapper, COL_CREATED_TIME);
		}
		if (modifiedTimeCondition != null) {
			modifiedTimeCondition.toWrapper(wrapper, COL_MODIFIED_TIME);
		}
		if (delCondition != null) {
			delCondition.toWrapper(wrapper, COL_DEL);
		}
		if (delTimeCondition != null) {
			delTimeCondition.toWrapper(wrapper, COL_DEL_TIME);
		}
		return wrapper;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return idCondition 查询条件
	 */
	public Condition<String> id() {
		this.idCondition = new Condition<>();
		return this.idCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return idCondition 查询条件
	 */
	public Condition<String> getIdCondition() {
		return idCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param idCondition 查询条件
	 */
	public void setIdCondition(Condition<String> idCondition) {
		this.idCondition = idCondition;
	}

	/**
	 * 构造并返回商圈ID查询条件
	 * 
	 * @return busdIdCondition 商圈ID查询条件
	 */
	public Condition<String> busdId() {
		this.busdIdCondition = new Condition<>();
		return this.busdIdCondition;
	}
	
	/**
	 * 获取商圈ID查询条件
	 * 
	 * @return busdIdCondition 商圈ID查询条件
	 */
	public Condition<String> getBusdIdCondition() {
		return busdIdCondition;
	}

	/**
	 * 设置商圈ID查询条件
	 * 
	 * @param busdIdCondition 商圈ID查询条件
	 */
	public void setBusdIdCondition(Condition<String> busdIdCondition) {
		this.busdIdCondition = busdIdCondition;
	}

	/**
	 * 构造并返回会员ID查询条件
	 * 
	 * @return memberIdCondition 会员ID查询条件
	 */
	public Condition<String> memberId() {
		this.memberIdCondition = new Condition<>();
		return this.memberIdCondition;
	}
	
	/**
	 * 获取会员ID查询条件
	 * 
	 * @return memberIdCondition 会员ID查询条件
	 */
	public Condition<String> getMemberIdCondition() {
		return memberIdCondition;
	}

	/**
	 * 设置会员ID查询条件
	 * 
	 * @param memberIdCondition 会员ID查询条件
	 */
	public void setMemberIdCondition(Condition<String> memberIdCondition) {
		this.memberIdCondition = memberIdCondition;
	}

	/**
	 * 构造并返回车牌号查询条件
	 * 
	 * @return plateNumberCondition 车牌号查询条件
	 */
	public Condition<String> plateNumber() {
		this.plateNumberCondition = new Condition<>();
		return this.plateNumberCondition;
	}
	
	/**
	 * 获取车牌号查询条件
	 * 
	 * @return plateNumberCondition 车牌号查询条件
	 */
	public Condition<String> getPlateNumberCondition() {
		return plateNumberCondition;
	}

	/**
	 * 设置车牌号查询条件
	 * 
	 * @param plateNumberCondition 车牌号查询条件
	 */
	public void setPlateNumberCondition(Condition<String> plateNumberCondition) {
		this.plateNumberCondition = plateNumberCondition;
	}

	/**
	 * 构造并返回[全局枚举]停车系统：0-无忧停车-DAHANWUYOU、1-ETCP-ETCP查询条件
	 * 
	 * @return parkSystemCondition [全局枚举]停车系统：0-无忧停车-DAHANWUYOU、1-ETCP-ETCP查询条件
	 */
	public Condition<ParkSystem> parkSystem() {
		this.parkSystemCondition = new Condition<>();
		return this.parkSystemCondition;
	}
	
	/**
	 * 获取[全局枚举]停车系统：0-无忧停车-DAHANWUYOU、1-ETCP-ETCP查询条件
	 * 
	 * @return parkSystemCondition [全局枚举]停车系统：0-无忧停车-DAHANWUYOU、1-ETCP-ETCP查询条件
	 */
	public Condition<ParkSystem> getParkSystemCondition() {
		return parkSystemCondition;
	}

	/**
	 * 设置[全局枚举]停车系统：0-无忧停车-DAHANWUYOU、1-ETCP-ETCP查询条件
	 * 
	 * @param parkSystemCondition [全局枚举]停车系统：0-无忧停车-DAHANWUYOU、1-ETCP-ETCP查询条件
	 */
	public void setParkSystemCondition(Condition<ParkSystem> parkSystemCondition) {
		this.parkSystemCondition = parkSystemCondition;
	}

	/**
	 * 构造并返回[枚举]车牌状态：0-未入场-OUTSIDE、1-已入场-INSIDE、2-待出场-PAYD查询条件
	 * 
	 * @return statusCondition [枚举]车牌状态：0-未入场-OUTSIDE、1-已入场-INSIDE、2-待出场-PAYD查询条件
	 */
	public Condition<PlateNoStatus> status() {
		this.statusCondition = new Condition<>();
		return this.statusCondition;
	}
	
	/**
	 * 获取[枚举]车牌状态：0-未入场-OUTSIDE、1-已入场-INSIDE、2-待出场-PAYD查询条件
	 * 
	 * @return statusCondition [枚举]车牌状态：0-未入场-OUTSIDE、1-已入场-INSIDE、2-待出场-PAYD查询条件
	 */
	public Condition<PlateNoStatus> getStatusCondition() {
		return statusCondition;
	}

	/**
	 * 设置[枚举]车牌状态：0-未入场-OUTSIDE、1-已入场-INSIDE、2-待出场-PAYD查询条件
	 * 
	 * @param statusCondition [枚举]车牌状态：0-未入场-OUTSIDE、1-已入场-INSIDE、2-待出场-PAYD查询条件
	 */
	public void setStatusCondition(Condition<PlateNoStatus> statusCondition) {
		this.statusCondition = statusCondition;
	}

	/**
	 * 构造并返回车辆颜色查询条件
	 * 
	 * @return brandCondition 车辆颜色查询条件
	 */
	public Condition<String> brand() {
		this.brandCondition = new Condition<>();
		return this.brandCondition;
	}
	
	/**
	 * 获取车辆颜色查询条件
	 * 
	 * @return brandCondition 车辆颜色查询条件
	 */
	public Condition<String> getBrandCondition() {
		return brandCondition;
	}

	/**
	 * 设置车辆颜色查询条件
	 * 
	 * @param brandCondition 车辆颜色查询条件
	 */
	public void setBrandCondition(Condition<String> brandCondition) {
		this.brandCondition = brandCondition;
	}

	/**
	 * 构造并返回车辆型号查询条件
	 * 
	 * @return modelCondition 车辆型号查询条件
	 */
	public Condition<String> model() {
		this.modelCondition = new Condition<>();
		return this.modelCondition;
	}
	
	/**
	 * 获取车辆型号查询条件
	 * 
	 * @return modelCondition 车辆型号查询条件
	 */
	public Condition<String> getModelCondition() {
		return modelCondition;
	}

	/**
	 * 设置车辆型号查询条件
	 * 
	 * @param modelCondition 车辆型号查询条件
	 */
	public void setModelCondition(Condition<String> modelCondition) {
		this.modelCondition = modelCondition;
	}

	/**
	 * 构造并返回车辆颜色查询条件
	 * 
	 * @return colorCondition 车辆颜色查询条件
	 */
	public Condition<String> color() {
		this.colorCondition = new Condition<>();
		return this.colorCondition;
	}
	
	/**
	 * 获取车辆颜色查询条件
	 * 
	 * @return colorCondition 车辆颜色查询条件
	 */
	public Condition<String> getColorCondition() {
		return colorCondition;
	}

	/**
	 * 设置车辆颜色查询条件
	 * 
	 * @param colorCondition 车辆颜色查询条件
	 */
	public void setColorCondition(Condition<String> colorCondition) {
		this.colorCondition = colorCondition;
	}

	/**
	 * 构造并返回创建时间查询条件
	 * 
	 * @return createdTimeCondition 创建时间查询条件
	 */
	public Condition<LocalDateTime> createdTime() {
		this.createdTimeCondition = new Condition<>();
		return this.createdTimeCondition;
	}
	
	/**
	 * 获取创建时间查询条件
	 * 
	 * @return createdTimeCondition 创建时间查询条件
	 */
	public Condition<LocalDateTime> getCreatedTimeCondition() {
		return createdTimeCondition;
	}

	/**
	 * 设置创建时间查询条件
	 * 
	 * @param createdTimeCondition 创建时间查询条件
	 */
	public void setCreatedTimeCondition(Condition<LocalDateTime> createdTimeCondition) {
		this.createdTimeCondition = createdTimeCondition;
	}

	/**
	 * 构造并返回更新时间查询条件
	 * 
	 * @return modifiedTimeCondition 更新时间查询条件
	 */
	public Condition<LocalDateTime> modifiedTime() {
		this.modifiedTimeCondition = new Condition<>();
		return this.modifiedTimeCondition;
	}
	
	/**
	 * 获取更新时间查询条件
	 * 
	 * @return modifiedTimeCondition 更新时间查询条件
	 */
	public Condition<LocalDateTime> getModifiedTimeCondition() {
		return modifiedTimeCondition;
	}

	/**
	 * 设置更新时间查询条件
	 * 
	 * @param modifiedTimeCondition 更新时间查询条件
	 */
	public void setModifiedTimeCondition(Condition<LocalDateTime> modifiedTimeCondition) {
		this.modifiedTimeCondition = modifiedTimeCondition;
	}

	/**
	 * 构造并返回删除标识：0-未删除；1-已删除查询条件
	 * 
	 * @return delCondition 删除标识：0-未删除；1-已删除查询条件
	 */
	public Condition<Boolean> del() {
		this.delCondition = new Condition<>();
		return this.delCondition;
	}
	
	/**
	 * 获取删除标识：0-未删除；1-已删除查询条件
	 * 
	 * @return delCondition 删除标识：0-未删除；1-已删除查询条件
	 */
	public Condition<Boolean> getDelCondition() {
		return delCondition;
	}

	/**
	 * 设置删除标识：0-未删除；1-已删除查询条件
	 * 
	 * @param delCondition 删除标识：0-未删除；1-已删除查询条件
	 */
	public void setDelCondition(Condition<Boolean> delCondition) {
		this.delCondition = delCondition;
	}

	/**
	 * 构造并返回删除时间查询条件
	 * 
	 * @return delTimeCondition 删除时间查询条件
	 */
	public Condition<LocalDateTime> delTime() {
		this.delTimeCondition = new Condition<>();
		return this.delTimeCondition;
	}
	
	/**
	 * 获取删除时间查询条件
	 * 
	 * @return delTimeCondition 删除时间查询条件
	 */
	public Condition<LocalDateTime> getDelTimeCondition() {
		return delTimeCondition;
	}

	/**
	 * 设置删除时间查询条件
	 * 
	 * @param delTimeCondition 删除时间查询条件
	 */
	public void setDelTimeCondition(Condition<LocalDateTime> delTimeCondition) {
		this.delTimeCondition = delTimeCondition;
	}

}
